QT+= core gui network opengl widgets sql
LIBS += -lopengl32


TARGET = smt
TEMPLATE = app
DEFINES += QT_DEPRECATED_WARNINGS


CONFIG += c++17

DEFINES += WIN32_LEAN_AND_MEAN
win32: LIBS += -L$$PWD/libmodbus/lib/ -lmodbus
INCLUDEPATH += $$PWD/libmodbus/include


SOURCES += \
    camera_dh.cpp \
    camera_qdialog.cpp \
    commonfunction.cpp \
    devicesizetable.cpp \
    dl_3.cpp \
    function.cpp \
    function_blob_match.cpp \
    function_detectionElectrode.cpp \
    function_detectionElectrode_rect.cpp \
    function_detectionGRAY.cpp \
    function_detectionThreshold.cpp \
    function_dl_3.cpp \
    function_measureElectrode.cpp \
    halcon_opencv.cpp \
    login_dialog.cpp \
        main.cpp \
    mainwindow.cpp \
    my_table_widget.cpp \
    qhalconwindow.cpp \
    qt_hread_process.cpp \
    qwidget_tableview.cpp \
    save_image.cpp \
    sha.cpp \
    show_qlabel.cpp

HEADERS += \
    camera_Interface.h \
    camera_dh.h \
    camera_qdialog.h \
    com.h \
    commonfunction.h \
    devicesizetable.h \
    dl.h \
    dl_3.h \
    function.h \
    function_blob_match.h \
    function_detectionElectrode.h \
    function_detectionElectrode_rect.h \
    function_detectionGRAY.h \
    function_detectionThreshold.h \
    function_detection_character.h \
    function_dl_3.h \
    function_measureElectrode.h \
    halcon_opencv.h \
    list_message.h \
    login_dialog.h \
        mainwindow.h \
    my_table_widget.h \
    qhalconwindow.h \
    qt_graphics_shape_line.h \
    qt_graphics_shape_point.h \
    qt_graphics_shape_rectangle.h \
    qt_graphics_view_image.h \
    qt_hread_process.h \
    qwidget_tableview.h \
    save_image.h \
    sha.h \
    show_qlabel.h





# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target


INCLUDEPATH   += "opencv/build/include"
CONFIG(debug, debug|release){
LIBS += "opencv/build/x64/vc16/lib/opencv_world470d.lib"
}else{
LIBS += "opencv/build/x64/vc16/lib/opencv_world470.lib"
}


INCLUDEPATH   += "CSerialPort/include"
CONFIG(debug, debug|release){
LIBS += "CSerialPort/lib/Debug/libcserialport.lib"
}else{
LIBS += "CSerialPort/lib/Release/libcserialport.lib"
}

RC_ICONS = logo.ico

INCLUDEPATH   += "halcon/include"
INCLUDEPATH   += "halcon/include/halconcpp"
INCLUDEPATH   += "halcon/include/hdevengine"
LIBS          += "halcon/lib/halconcppxl.lib"
LIBS          += "halcon/lib/hdevenginecppxl.lib"

#CONFIG(debug, debug|release){
#LIBS += "debug/yolo8_tensorrt.lib"
#}else{
#LIBS += "release/yolo8_tensorrt.lib"
#}



DISTFILES += \
    smt.vcxproj.user

INCLUDEPATH +=$$quote(C:\TruthEye\TeAiFlow\Development\include\teExTypes)
INCLUDEPATH +=$$quote(C:\TruthEye\TeAiFlow\Development\include\teInTypes)
INCLUDEPATH +=$$quote(C:\TruthEye\TeAiFlow\Development\include\teInTypesDataRegistration)
INCLUDEPATH +=$$quote(C:\TruthEye\TeAiFlow\Development\include\teDataRegistration\3rd_party)
INCLUDEPATH +=$$quote(C:\TruthEye\TeAiFlow\Development\include\teAiFlowEngine)

INCLUDEPATH +=$$quote(C:\TruthEye\TeAiFlow\Development\include\teAiFlowGui_Qt\teAiFlow_GraphicsView)
INCLUDEPATH +=$$quote(C:\TruthEye\TeAiFlow\Development\include\teAiFlowGui_Qt\VariantStreamStatistics)
INCLUDEPATH +=$$quote(C:\TruthEye\TeAiFlow\Development\include\teAiFlowGui_Qt\Global)
INCLUDEPATH +=$$quote(C:\TruthEye\TeAiFlow\Development\include\teAiFlowGui_Qt\3rd_party)


win32:CONFIG(debug, debug|release): {
    LIBS+=$$quote(C:\TruthEye\TeAiFlow\Development\lib\teExTypesd.lib)
    LIBS+=$$quote(C:\TruthEye\TeAiFlow\Development\lib\teInTypesd.lib)
    LIBS+=$$quote(C:\TruthEye\TeAiFlow\Development\lib\teInTypesDataRegistrationd.lib)
    LIBS+=$$quote(C:\TruthEye\TeAiFlow\Development\lib\teDataRegistrationd.lib)
    LIBS+=$$quote(C:\TruthEye\TeAiFlow\Development\lib\teAiFlowEngined.lib)

    LIBS+=$$quote(C:\TruthEye\TeAiFlow\Development\lib\teAiFlowGui_Qtd.lib)
}
else:win32:CONFIG(release, debug|release): {
    LIBS+=$$quote(C:\TruthEye\TeAiFlow\Development\lib\teExTypes.lib)
    LIBS+=$$quote(C:\TruthEye\TeAiFlow\Development\lib\teInTypes.lib)
    LIBS+=$$quote(C:\TruthEye\TeAiFlow\Development\lib\teInTypesDataRegistration.lib)
    LIBS+=$$quote(C:\TruthEye\TeAiFlow\Development\lib\teDataRegistration.lib)
    LIBS+=$$quote(C:\TruthEye\TeAiFlow\Development\lib\teAiFlowEngine.lib)

    LIBS+=$$quote(C:\TruthEye\TeAiFlow\Development\lib\teAiFlowGui_Qt.lib)
}
